def method_decorator(func):
    """用于类方法的装饰器"""
    def wrapper(self, *args, **kwargs):
        print(f"🎯 调用方法: {self.__class__.__name__}.{func.__name__}")
        return func(self, *args, **kwargs)
    return wrapper

class Calculator:
    @method_decorator
    def add(self, a, b):
        return a + b

    @method_decorator
    def multiply(self, a, b):
        return a * b

calc = Calculator()
print(calc.add(2, 3))
print(calc.multiply(4, 5))